package com.game.business.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
        import com.game.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.game.business.mapper.TDhMapper;
import com.game.business.domain.TDh;
import com.game.business.service.ITDhService;

/**
 * 君子币兑换配置Service业务层处理
 *
 * @author ruoyi
 * @date 2025-10-11
 */
@Service
public class TDhServiceImpl extends ServiceImpl<TDhMapper,TDh>  implements ITDhService
{
    @Autowired
    private TDhMapper tDhMapper;

    /**
     * 查询君子币兑换配置
     *
     * @param id 君子币兑换配置主键
     * @return 君子币兑换配置
     */
    @Override
    public TDh selectTDhById(String id)
    {
        return tDhMapper.selectTDhById(id);
    }

    /**
     * 查询君子币兑换配置列表
     *
     * @param tDh 君子币兑换配置
     * @return 君子币兑换配置
     */
    @Override
    public List<TDh> selectTDhList(TDh tDh)
    {
        return tDhMapper.selectTDhList(tDh);
    }

    /**
     * 新增君子币兑换配置
     *
     * @param tDh 君子币兑换配置
     * @return 结果
     */
    @Override
    public int insertTDh(TDh tDh)
    {
                tDh.setCreateTime(DateUtils.getNowDate());
            return tDhMapper.insertTDh(tDh);
    }

    /**
     * 修改君子币兑换配置
     *
     * @param tDh 君子币兑换配置
     * @return 结果
     */
    @Override
    public int updateTDh(TDh tDh)
    {
                tDh.setUpdateTime(DateUtils.getNowDate());
        return tDhMapper.updateTDh(tDh);
    }

    /**
     * 批量删除君子币兑换配置
     *
     * @param ids 需要删除的君子币兑换配置主键
     * @return 结果
     */
    @Override
    public int deleteTDhByIds(String[] ids)
    {
        return tDhMapper.deleteTDhByIds(ids);
    }

    /**
     * 删除君子币兑换配置信息
     *
     * @param id 君子币兑换配置主键
     * @return 结果
     */
    @Override
    public int deleteTDhById(String id)
    {
        return tDhMapper.deleteTDhById(id);
    }
}
